package com.shutuo.callnummeiwei.net;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

public interface PacketParser<T> {
    @Nullable
    byte[] toData(@NonNull T obj);

    @Nullable
    T toObj(@NonNull byte[] data, int offset, int length);
}
